<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="data:,">
    <title>Lightyear example: {{name}}</title>
    <style>
        body,
        html {
            margin: 0;
            padding: 0;
            width: 100vw;
            height: 100%;
        }

        canvas {
            display: block;
            touch-action: none;
        }

        canvas:focus {
            outline: none;
        }
    </style>
</head>

<body>
    <script type="module">
        window.MATCHMAKER_URL = "wss://game.metabrew.com/matchmaker/ws";
        import init from './{{name}}.js'

        init().catch((error) => {
            if (!error.message.startsWith("Using exceptions for control flow, don't mind me. This isn't actually an error!")) {
                throw error;
            }
        });
    </script>
</body>

</html>